Integrand size = 20, antiderivative size = 213 \[ \int f^{a+c x^2} \sin ^3\left (d+f x^2\right ) \, dx=\frac {3 i e^{-i d} f^a \sqrt {\pi } \text {erf}\left (x \sqrt {i f-c \log (f)}\right )}{16 \sqrt {i f-c \log (f)}}-\frac {i e^{-3 i d} f^a \sqrt {\pi } \text {erf}\left (x \sqrt {3 i f-c \log (f)}\right )}{16 \sqrt {3 i f-c \log (f)}}-\frac {3 i e^{i d} f^a \sqrt {\pi } \text {erfi}\left (x \sqrt {i f+c \log (f)}\right )}{16 \sqrt {i f+c \log (f)}}+\frac {i e^{3 i d} f^a \sqrt {\pi } \text {erfi}\left (x \sqrt {3 i f+c \log (f)}\right )}{16 \sqrt {3 i f+c \log (f)}} \]
[Out]
Time = 0.42 (sec) , antiderivative size = 213, normalized size of antiderivative = 1.00, number of steps used = 10, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {4560, 2325, 2236, 2235} \[ \int f^{a+c x^2} \sin ^3\left (d+f x^2\right ) \, dx=\frac {3 i \sqrt {\pi } e^{-i d} f^a \text {erf}\left (x \sqrt {-c \log (f)+i f}\right )}{16 \sqrt {-c \log (f)+i f}}-\frac {i \sqrt {\pi } e^{-3 i d} f^a \text {erf}\left (x \sqrt {-c \log (f)+3 i f}\right )}{16 \sqrt {-c \log (f)+3 i f}}-\frac {3 i \sqrt {\pi } e^{i d} f^a \text {erfi}\left (x \sqrt {c \log (f)+i f}\right )}{16 \sqrt {c \log (f)+i f}}+\frac {i \sqrt {\pi } e^{3 i d} f^a \text {erfi}\left (x \sqrt {c \log (f)+3 i f}\right )}{16 \sqrt {c \log (f)+3 i f}} \]
[In]
[Out]
Rule 2235
Rule 2236
Rule 2325
Rule 4560
Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {3}{8} i e^{-i d-i f x^2} f^{a+c x^2}-\frac {3}{8} i e^{i d+i f x^2} f^{a+c x^2}-\frac {1}{8} i e^{-3 i d-3 i f x^2} f^{a+c x^2}+\frac {1}{8} i e^{3 i d+3 i f x^2} f^{a+c x^2}\right ) \, dx \\ & = -\left (\frac {1}{8} i \int e^{-3 i d-3 i f x^2} f^{a+c x^2} \, dx\right )+\frac {1}{8} i \int e^{3 i d+3 i f x^2} f^{a+c x^2} \, dx+\frac {3}{8} i \int e^{-i d-i f x^2} f^{a+c x^2} \, dx-\frac {3}{8} i \int e^{i d+i f x^2} f^{a+c x^2} \, dx \\ & = -\left (\frac {1}{8} i \int \exp \left (-3 i d+a \log (f)-x^2 (3 i f-c \log (f))\right ) \, dx\right )+\frac {1}{8} i \int \exp \left (3 i d+a \log (f)+x^2 (3 i f+c \log (f))\right ) \, dx+\frac {3}{8} i \int e^{-i d+a \log (f)-x^2 (i f-c \log (f))} \, dx-\frac {3}{8} i \int e^{i d+a \log (f)+x^2 (i f+c \log (f))} \, dx \\ & = \frac {3 i e^{-i d} f^a \sqrt {\pi } \text {erf}\left (x \sqrt {i f-c \log (f)}\right )}{16 \sqrt {i f-c \log (f)}}-\frac {i e^{-3 i d} f^a \sqrt {\pi } \text {erf}\left (x \sqrt {3 i f-c \log (f)}\right )}{16 \sqrt {3 i f-c \log (f)}}-\frac {3 i e^{i d} f^a \sqrt {\pi } \text {erfi}\left (x \sqrt {i f+c \log (f)}\right )}{16 \sqrt {i f+c \log (f)}}+\frac {i e^{3 i d} f^a \sqrt {\pi } \text {erfi}\left (x \sqrt {3 i f+c \log (f)}\right )}{16 \sqrt {3 i f+c \log (f)}} \\ \end{align*}
Time = 1.77 (sec) , antiderivative size = 386, normalized size of antiderivative = 1.81 \[ \int f^{a+c x^2} \sin ^3\left (d+f x^2\right ) \, dx=\frac {\sqrt [4]{-1} f^a \sqrt {\pi } \left (-3 \text {erfi}\left (\sqrt [4]{-1} x \sqrt {f-i c \log (f)}\right ) \sqrt {f-i c \log (f)} \left (9 f^3+9 i c f^2 \log (f)+c^2 f \log ^2(f)+i c^3 \log ^3(f)\right ) (\cos (d)+i \sin (d))+(f-i c \log (f)) \left (\text {erfi}\left (\sqrt [4]{-1} x \sqrt {3 f-i c \log (f)}\right ) \sqrt {3 f-i c \log (f)} \left (3 f^2+4 i c f \log (f)-c^2 \log ^2(f)\right ) (\cos (3 d)+i \sin (3 d))+(3 f-i c \log (f)) \left (3 \text {erfi}\left ((-1)^{3/4} x \sqrt {f+i c \log (f)}\right ) \sqrt {f+i c \log (f)} (c \cos (d) \log (f)-3 f \sin (d))+3 \text {erf}\left (\frac {(1+i) x \sqrt {f+i c \log (f)}}{\sqrt {2}}\right ) \sqrt {f+i c \log (f)} (3 f \cos (d)+c \log (f) \sin (d))+\text {erfi}\left ((-1)^{3/4} x \sqrt {3 f+i c \log (f)}\right ) (f+i c \log (f)) \sqrt {3 f+i c \log (f)} (i \cos (3 d)+\sin (3 d))\right )\right )\right )}{16 \left (9 f^4+10 c^2 f^2 \log ^2(f)+c^4 \log ^4(f)\right )} \]
[In]
[Out]
Time = 1.24 (sec) , antiderivative size = 166, normalized size of antiderivative = 0.78
method | result | size |
risch | \(\frac {i \sqrt {\pi }\, f^{a} {\mathrm e}^{3 i d} \operatorname {erf}\left (\sqrt {-c \ln \left (f \right )-3 i f}\, x \right )}{16 \sqrt {-c \ln \left (f \right )-3 i f}}-\frac {i \sqrt {\pi }\, f^{a} {\mathrm e}^{-3 i d} \operatorname {erf}\left (x \sqrt {3 i f -c \ln \left (f \right )}\right )}{16 \sqrt {3 i f -c \ln \left (f \right )}}+\frac {3 i \sqrt {\pi }\, f^{a} {\mathrm e}^{-i d} \operatorname {erf}\left (x \sqrt {i f -c \ln \left (f \right )}\right )}{16 \sqrt {i f -c \ln \left (f \right )}}-\frac {3 i \sqrt {\pi }\, f^{a} {\mathrm e}^{i d} \operatorname {erf}\left (\sqrt {-c \ln \left (f \right )-i f}\, x \right )}{16 \sqrt {-c \ln \left (f \right )-i f}}\) | \(166\) |
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 317 vs. \(2 (145) = 290\).
Time = 0.27 (sec) , antiderivative size = 317, normalized size of antiderivative = 1.49 \[ \int f^{a+c x^2} \sin ^3\left (d+f x^2\right ) \, dx=\frac {\sqrt {\pi } {\left (-i \, c^{3} \log \left (f\right )^{3} - 3 \, c^{2} f \log \left (f\right )^{2} - i \, c f^{2} \log \left (f\right ) - 3 \, f^{3}\right )} \sqrt {-c \log \left (f\right ) - 3 i \, f} \operatorname {erf}\left (\sqrt {-c \log \left (f\right ) - 3 i \, f} x\right ) e^{\left (a \log \left (f\right ) + 3 i \, d\right )} - 3 \, \sqrt {\pi } {\left (-i \, c^{3} \log \left (f\right )^{3} - c^{2} f \log \left (f\right )^{2} - 9 i \, c f^{2} \log \left (f\right ) - 9 \, f^{3}\right )} \sqrt {-c \log \left (f\right ) - i \, f} \operatorname {erf}\left (\sqrt {-c \log \left (f\right ) - i \, f} x\right ) e^{\left (a \log \left (f\right ) + i \, d\right )} - 3 \, \sqrt {\pi } {\left (i \, c^{3} \log \left (f\right )^{3} - c^{2} f \log \left (f\right )^{2} + 9 i \, c f^{2} \log \left (f\right ) - 9 \, f^{3}\right )} \sqrt {-c \log \left (f\right ) + i \, f} \operatorname {erf}\left (\sqrt {-c \log \left (f\right ) + i \, f} x\right ) e^{\left (a \log \left (f\right ) - i \, d\right )} + \sqrt {\pi } {\left (i \, c^{3} \log \left (f\right )^{3} - 3 \, c^{2} f \log \left (f\right )^{2} + i \, c f^{2} \log \left (f\right ) - 3 \, f^{3}\right )} \sqrt {-c \log \left (f\right ) + 3 i \, f} \operatorname {erf}\left (\sqrt {-c \log \left (f\right ) + 3 i \, f} x\right ) e^{\left (a \log \left (f\right ) - 3 i \, d\right )}}{16 \, {\left (c^{4} \log \left (f\right )^{4} + 10 \, c^{2} f^{2} \log \left (f\right )^{2} + 9 \, f^{4}\right )}} \]
[In]
[Out]
\[ \int f^{a+c x^2} \sin ^3\left (d+f x^2\right ) \, dx=\int f^{a + c x^{2}} \sin ^{3}{\left (d + f x^{2} \right )}\, dx \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 661 vs. \(2 (145) = 290\).
Time = 0.24 (sec) , antiderivative size = 661, normalized size of antiderivative = 3.10 \[ \int f^{a+c x^2} \sin ^3\left (d+f x^2\right ) \, dx=-\frac {\sqrt {\pi } \sqrt {2 \, c^{2} \log \left (f\right )^{2} + 18 \, f^{2}} {\left ({\left ({\left (c^{2} \cos \left (3 \, d\right ) - i \, c^{2} \sin \left (3 \, d\right )\right )} f^{a} \log \left (f\right )^{2} + f^{a + 2} {\left (\cos \left (3 \, d\right ) - i \, \sin \left (3 \, d\right )\right )}\right )} \operatorname {erf}\left (\sqrt {-c \log \left (f\right ) + 3 i \, f} x\right ) + {\left ({\left (c^{2} \cos \left (3 \, d\right ) + i \, c^{2} \sin \left (3 \, d\right )\right )} f^{a} \log \left (f\right )^{2} + f^{a + 2} {\left (\cos \left (3 \, d\right ) + i \, \sin \left (3 \, d\right )\right )}\right )} \operatorname {erf}\left (\sqrt {-c \log \left (f\right ) - 3 i \, f} x\right )\right )} \sqrt {c \log \left (f\right ) + \sqrt {c^{2} \log \left (f\right )^{2} + 9 \, f^{2}}} - 3 \, \sqrt {\pi } \sqrt {2 \, c^{2} \log \left (f\right )^{2} + 2 \, f^{2}} {\left ({\left ({\left (c^{2} \cos \left (d\right ) - i \, c^{2} \sin \left (d\right )\right )} f^{a} \log \left (f\right )^{2} + 9 \, f^{a + 2} {\left (\cos \left (d\right ) - i \, \sin \left (d\right )\right )}\right )} \operatorname {erf}\left (\sqrt {-c \log \left (f\right ) + i \, f} x\right ) + {\left ({\left (c^{2} \cos \left (d\right ) + i \, c^{2} \sin \left (d\right )\right )} f^{a} \log \left (f\right )^{2} + 9 \, f^{a + 2} {\left (\cos \left (d\right ) + i \, \sin \left (d\right )\right )}\right )} \operatorname {erf}\left (\sqrt {-c \log \left (f\right ) - i \, f} x\right )\right )} \sqrt {c \log \left (f\right ) + \sqrt {c^{2} \log \left (f\right )^{2} + f^{2}}} + \sqrt {\pi } \sqrt {2 \, c^{2} \log \left (f\right )^{2} + 18 \, f^{2}} {\left ({\left ({\left (i \, c^{2} \cos \left (3 \, d\right ) + c^{2} \sin \left (3 \, d\right )\right )} f^{a} \log \left (f\right )^{2} + f^{a + 2} {\left (i \, \cos \left (3 \, d\right ) + \sin \left (3 \, d\right )\right )}\right )} \operatorname {erf}\left (\sqrt {-c \log \left (f\right ) + 3 i \, f} x\right ) + {\left ({\left (-i \, c^{2} \cos \left (3 \, d\right ) + c^{2} \sin \left (3 \, d\right )\right )} f^{a} \log \left (f\right )^{2} + f^{a + 2} {\left (-i \, \cos \left (3 \, d\right ) + \sin \left (3 \, d\right )\right )}\right )} \operatorname {erf}\left (\sqrt {-c \log \left (f\right ) - 3 i \, f} x\right )\right )} \sqrt {-c \log \left (f\right ) + \sqrt {c^{2} \log \left (f\right )^{2} + 9 \, f^{2}}} + 3 \, \sqrt {\pi } \sqrt {2 \, c^{2} \log \left (f\right )^{2} + 2 \, f^{2}} {\left ({\left ({\left (-i \, c^{2} \cos \left (d\right ) - c^{2} \sin \left (d\right )\right )} f^{a} \log \left (f\right )^{2} + 9 \, f^{a + 2} {\left (-i \, \cos \left (d\right ) - \sin \left (d\right )\right )}\right )} \operatorname {erf}\left (\sqrt {-c \log \left (f\right ) + i \, f} x\right ) + {\left ({\left (i \, c^{2} \cos \left (d\right ) - c^{2} \sin \left (d\right )\right )} f^{a} \log \left (f\right )^{2} + 9 \, f^{a + 2} {\left (i \, \cos \left (d\right ) - \sin \left (d\right )\right )}\right )} \operatorname {erf}\left (\sqrt {-c \log \left (f\right ) - i \, f} x\right )\right )} \sqrt {-c \log \left (f\right ) + \sqrt {c^{2} \log \left (f\right )^{2} + f^{2}}}}{32 \, {\left (c^{4} \log \left (f\right )^{4} + 10 \, c^{2} f^{2} \log \left (f\right )^{2} + 9 \, f^{4}\right )}} \]
[In]
[Out]
\[ \int f^{a+c x^2} \sin ^3\left (d+f x^2\right ) \, dx=\int { f^{c x^{2} + a} \sin \left (f x^{2} + d\right )^{3} \,d x } \]
[In]
[Out]
Timed out. \[ \int f^{a+c x^2} \sin ^3\left (d+f x^2\right ) \, dx=\int f^{c\,x^2+a}\,{\sin \left (f\,x^2+d\right )}^3 \,d x \]
[In]
[Out]